{if !$inline}
<div id="items-list">
{/if}


	{foreach from=$items item=item name=items}
	{if $smarty.foreach.items.first}
	<form method="post" action="/admin/portfolio/delete.html" id="delete-form">
	
	<div id="items-container">
	<div class="items">
	
	<div class="items-page" style="padding-top:13px;">
	
	
	<a name="start-{$smarty.foreach.items.index}"></a>
	<div style="text-align:center;">
		<img src="/admin/css/previous.disabled.png" alt="" title="" />
		{if $smarty.foreach.items.total > 14}
		<a href="#start-{$paging_ipp}"><img src="/admin/css/next.png" alt="" title="" /></a>
		{else}
		<img src="/admin/css/next.disabled.png" alt="" title="" />
		{/if}
	</div>
	
	{/if}
	
	
	
	<div class="item" id="item-{$item.id}">
		<input type="checkbox" name="deleteitem[]" value="{$item.id}" id="check-item-{$item.id}" class="wauto borderless" />
		<a href="/admin/portfolio/edit.html;id={$item.id}" class="remote">
			{$item.title|stripslashes}
		</a>
		<br class="clear" />
	</div>
	
	
	
	{if $smarty.foreach.items.iteration % $paging_ipp  == 0 && !$smarty.foreach.items.last}
	</div>
	<div class="items-page">
	
	<a name="start-{$smarty.foreach.items.iteration}"></a>
	<div style="text-align:center;">
		<a href="#start-{math equation="x - 14" x=$smarty.foreach.items.iteration}"><img src="/admin/css/previous.png" alt="" title="" /></a>
		
		{if ($smarty.foreach.items.iteration+14) < $smarty.foreach.items.total}
		<a href="#start-{math equation="x + 14" x=$smarty.foreach.items.iteration}"><img src="/admin/css/next.png" alt="" title="" /></a>
		{else}
		<img src="/admin/css/next.disabled.png" alt="" title="" />
		{/if}
	</div>
	
	
	{/if}
	


	
	{if $smarty.foreach.items.last}
	</div>

	
	</div>
	</div>
	
	
	<div id="item-delete-link">
		<input type="submit" value="Delete" name="submit" class="wauto small" /></a>
	</div>
	</form>
	
	{/if}
	{/foreach}
	
	
	<div id="item-add-link">
		<img src="/admin/css/add.png" alt="" style="padding-top: 5px;" /> <a href="/admin/portfolio/add.html" class="remote">  Add portfolio item</a>
	</div>
	
{if !$inline}
</div>
{/if}


